<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--style quản lý  thông tin người dùng-->
<style>
	a.thua__link_1:link { font-size: 14px; text-decoration: none;  color: #0b55c4; }
	a.thua__link_1:visited { font-size: 14px; color: #0b55c4; text-decoration: none; }
	a.thua__link_1:hover { font-size: 14px; text-decoration: none; color: #084095;  font-style: normal; }
</style>
<a href="?thamso=themtv"><input type="button" value="Thêm nhân viên" style="height:30px; width:200px"/></a>
<center>
  <table width="990px" border="1" style="margin-top:6px" id="er">
  <!--giao diện chi tiết thông tin người dùng-->
  <tr>
			<td width="100" align="center"><b>User</b></td>
			<td width="538" align="center"><b>matkhau</b></td>
            <td width="538" align="center"><b>admin</b></td>
            <td width="161" align="center"><b>email</b></td>
			<td width="163" align="center"><b>ho_ten</b></td>
			<td width="100" align="center"><b>phai</b></td>
			<td width="538" align="center"><b>sinh_nhat</b></td>
            <td width="538" align="center"><b>dien_thoai</b></td>
            <td width="161" align="center"><b>dia_chi</b></td>
			<td width="163" align="center"><b>cmnd</b></td>
			<td width="161" align="center"><b></b></td>
			<td width="163" align="center"><b></b></td>
		</tr>
		<?php 
			//select tất cả thông tin của user 
			$sql="select * from user";
			//thực hiện truy vấn
			$sql1=mysql_query($sql);
			//kiểm tra link được click là link sửa hay  link xóa và chuyển link tương ứng
			while($tv_2=mysql_fetch_array($sql1))
			{
				$link_sua="?thamso=suatv&id=".$tv_2['user_name'];
				$link_xoa="?thamso=xoatv&id=".$tv_2['user_name'];
				?>
					<tr>
						<td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['user_name']; ?>
							</a>
						</td>
                        <td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['matkhau']; ?>
							</a>
						</td>
						<td align="center" >
							<?php echo $tv_2['admin']; ?>
						</td>
						<td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['email']; ?>
							</a>
						</td>
                        <td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['ho_ten']; ?>
							</a>
						</td>
						<td align="center" >
							<?php echo $tv_2['phai']; ?>
						</td>
						<td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['sinh_nhat']; ?>
							</a>
						</td>
						<td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['dien_thoai']; ?>
							</a>
						</td>
						 <td align="center" >
							<a href="<?php echo $link_sua; ?>" class="thua__link_1">
								<?php echo $tv_2['dia_chi']; ?>
							</a>
						</td>
						<td align="center" >
							<?php echo $tv_2['cmnd']; ?>
						</td>
						<td align="center">
							<a href="<?php echo $link_sua; ?>" class="sua_xoa" >
								Sửa
							</a>
						</td>
						<td align="center">
							<a href="<?php echo $link_xoa; ?>" class="sua_xoa" >
								Xóa
							</a>
						</td>

					</tr>
				<?php
			}
			echo "<div id='trang'>";
		for($i=1;$i<=$st;$i++)
		{
			$link="?thamso=hang&trang=$i";
			echo "<a href='$link'><font size='4px'>";
			echo $i;
			echo "</font></a>";echo"  ";
		}
	echo "</div>";
		?>
		
	</table>
</center>
<script>
	table_css_2("er");
</script>